package com.mongodb.document;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author zhangbowen
 * @date 2019/2/15
 **/
@Document(collection = "user")
@Data
public class User {
    @Id
    private String userId;
    private String name;
    private Integer age;
   // private Account account;
}
